<style type="text/css">
    .sm-st {
        background: #fff;
        padding: 20px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        margin-bottom: 20px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
    }

    .sm-st-icon {
        width: 60px;
        height: 60px;
        display: inline-block;
        line-height: 60px;
        text-align: center;
        font-size: 30px;
        background: #eee;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        float: left;
        margin-right: 10px;
        color: #fff;
    }

    .sm-st-info {
        font-size: 12px;
        padding-top: 2px;
    }

    .sm-st-info span {
        display: block;
        font-size: 24px;
        font-weight: 600;
    }

    .orange {
        background: #fa8564 !important;
    }

    .tar {
        background: #45cf95 !important;
    }

    .sm-st .green {
        background: #86ba41 !important;
    }

    .pink {
        background: #AC75F0 !important;
    }

    .yellow-b {
        background: #fdd752 !important;
    }

    .stat-elem {

        background-color: #fff;
        padding: 18px;
        border-radius: 40px;

    }

    .stat-info {
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
        margin-top: -5px;
        padding: 8px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        font-style: italic;
    }

    .stat-icon {
        text-align: center;
        margin-bottom: 5px;
    }

    .st-red {
        background-color: #F05050;
    }

    .st-green {
        background-color: #27C24C;
    }

    .st-violet {
        background-color: #7266ba;
    }

    .st-blue {
        background-color: #23b7e5;
    }

    .stats .stat-icon {
        color: #28bb9c;
        display: inline-block;
        font-size: 26px;
        text-align: center;
        vertical-align: middle;
        width: 50px;
        float: left;
    }

    .stat {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        margin-right: 10px;
    }

    .stat .value {
        font-size: 20px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
    }

    .stat .name {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat.lg .value {
        font-size: 26px;
        line-height: 28px;
    }

    .stat.lg .name {
        font-size: 16px;
    }

    .stat-col .progress {
        height: 2px;
    }

    .stat-col .progress-bar {
        line-height: 2px;
        height: 2px;
    }

    .item {
        padding: 30px 0;
    }
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null, false)}
        <ul class="nav nav-tabs">
            <li class="active"><a href="#one" data-toggle="tab">业务统计</a></li>
            <li><a href="#two" data-toggle="tab">系统信息</a></li>
        </ul>
    </div>


    <div class="panel-body">
        <div id="myTabContent" class="tab-content">

            <div class="tab-pane fade active in" id="one">
                <div class="row">
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-red"><i class="fa fa-users"></i></span>
                            <div class="sm-st-info">
                                <span>{$totaluser}</span>
                                {:__('Total user')}
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-violet"><i class="fa fa-book"></i></span>
                            <div class="sm-st-info">
                                <span>{$totalviews}</span>
                                {:__('Total view')}
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-blue"><i class="fa fa-shopping-bag"></i></span>
                            <div class="sm-st-info">
                                <span>{$totalorder}</span>
                                {:__('Total order')}
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-green"><i class="fa fa-cny"></i></span>
                            <div class="sm-st-info">
                                <span>{$totalorderamount}</span>
                                {:__('Total order amount')}
                            </div>
                        </div>
                    </div>
                </div>

                <div class="col-lg-12">
                    <div id="echart" class="btn-refresh" style="height:200px;width:100%;"></div>
                </div>

            </div>
            <div class="tab-pane fade" id="two">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">

                            <div class="col-lg-4">
                                <div class="box box-info">
                                    <div class="box-header"><h3 class="box-title">{:__('Server info')}</h3></div>
                                    <div class="box-body" style="padding-top:0;">
                                        <table class="table table-striped">
                                            <tbody>
                                            <tr>
                                                <td>{:__('Thinkphp version')}</td>
                                                <td>{:app()->version()}</td>
                                            </tr>
                                            <tr>
                                                <td>{:__('Sapi name')}</td>
                                                <td>{:php_sapi_name()}</td>
                                            </tr>
                                            <tr>
                                                <td>{:__('Debug mode')}</td>
                                                <td>{$Request.env.app_debug?__('Yes'):__('No')}</td>
                                            </tr>
                                            <tr>
                                                <td>{:__('PHP version')}</td>
                                                <td><?= PHP_VERSION ?></td>
                                            </tr>
                                            <tr>
                                                <td>{:__('Upload mode')}</td>
                                                <td>{$uploadmode}</td>
                                            </tr>
                                            <tr>
                                                <td>{:__('Upload url')}</td>
                                                <td>{$config.upload.uploadurl}</td>
                                            </tr>
                                            <tr>
                                                <td>{:__('Upload Cdn url')}</td>
                                                <td>{$config.upload.cdnurl}</td>
                                            </tr>
                                            <tr>
                                                <td>{:__('Timezone')}</td>
                                                <td>{:date_default_timezone_get()}</td>
                                            </tr>
                                            <tr>
                                                <td>{:__('Cdn url')}</td>
                                                <td>__CDN__</td>
                                            </tr>
                                            <tr>
                                                <td>{:__('Language')}</td>
                                                <td>{$config.language}</td>
                                            </tr>

                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>

                            <div class="col-lg-4">
                                <div class="box box-success">
                                    <div class="box-header with-border">
                                        <h3 class="box-title">运行状况</h3>

                                        <div class="box-tools pull-right">
                                        </div>
                                    </div>

                                    <div class="box-body">
                                        <ul class="nav nav-pills nav-stacked">
                                            <li>
                                                系统运行内存
                                                <span class="pull-right text-yellow">
                                                        <?php echo  round(\think\facade\App::getBeginMem()/1024/1024,4 ) ?> MB
                                                    </span>
                                            </li>
                                        </ul>
                                    </div>

                                    <div class="box-body">
                                        <ul class="nav nav-pills nav-stacked">
                                            <li>
                                                内存清耗量
                                                <span class="pull-right text-yellow">
                                                        <?php echo round(memory_get_peak_usage()/1024/1024,4); ?> MB
                                                    </span>
                                            </li>
                                        </ul>
                                    </div>

                                    <div class="box-body">
                                        <ul class="nav nav-pills nav-stacked">
                                            <li>
                                                系统使用时间
                                                <span class="pull-right text-yellow">
                                                    <?php echo round(microtime(true) - \think\facade\App::getBeginTime(),4); ?> S
                                                    </span>
                                            </li>
                                        </ul>
                                    </div>

                                    <div class="box-body">
                                        <ul class="nav nav-pills nav-stacked">
                                            <li>
                                                浏览器内核信息
                                                <span class="pull-right text-yellow">
                                                        <?php echo getBrowser() ?>
                                                    </span>
                                            </li>
                                        </ul>
                                    </div>

                                </div>
                            </div>


                            <div class="col-lg-4">
                                <div class="box box-danger">
                                    <div class="box-header with-border">
                                        <h3 class="box-title">系统版本信息</h3>

                                        <div class="box-tools pull-right">
                                        </div>
                                    </div>

                                    <div class="box-body">

                                        <ul class="products-list product-list-in-box">
                                            <li class="item">
                                                <div class="product-img">
                                                    <img src="__CDN__/assets/img/title.png" style="height:40px;width:40px;">
                                                </div>
                                                <div class="product-info">
                                                    <a href="#" target="_blank" class="product-title">
                                                        当前为最新版本
                                                        <span class="label pull-right">---</span>
                                                    </a>
                                                    <span class="product-description">v.1.0.0发布成功</span>
                                                </div>
                                            </li>
                                        </ul>

                                        <ul class="products-list product-list-in-box">
                                            <li class="item">
                                                <div class="product-img">
                                                    <img src="__CDN__/assets/img/title.png" style="height:40px;width:40px;">
                                                </div>
                                                <div class="product-info">
                                                    <a href="#" target="_blank" class="product-title">
                                                        系统初始化
                                                        <span class="label pull-right">---</span>
                                                    </a>
                                                    <span class="product-description">系统成功初始化</span>
                                                </div>
                                            </li>
                                        </ul>

                                    </div>

                                </div>
                            </div>

                        </div>

                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
<script>
    var Orderdata = {
        column: {:json_encode(array_keys($paylist))},
    paydata: {:json_encode(array_values($paylist))},
    createdata: {:json_encode(array_values($createlist))},
    };
</script>